From: Anthony Zhou Date: Fri, 22 Sep 2017 08:52:02 +0000 (+0800) Subject: Tegra186: setup: Fix MISRA Rule 8.4 violation X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=ad67f8c56d76174c585a6d2a0e1b378062315bfa;p=project%2Fbcm63xx%2Fatf.git Tegra186: setup: Fix MISRA Rule 8.4 violation MISRA Rule 8.4, A compatible declaration shall be visible when an object or function with external linkage is defined. This patch adds static for local array to fix this defect. Change-Id: I8231448bf1bc0b1e59611d7645ca983b83d5c8e3 Signed-off-by: Anthony Zhou --- diff --git a/plat/nvidia/tegra/soc/t186/plat_setup.c b/plat/nvidia/tegra/soc/t186/plat_setup.c index bbd19c1c..bd6d7647 100644 --- a/plat/nvidia/tegra/soc/t186/plat_setup.c +++ b/plat/nvidia/tegra/soc/t186/plat_setup.c @@ -40,7 +40,7 @@ * the number of power domains at the highest power level. ******************************************************************************* */ -const uint8_t tegra_power_domain_tree_desc[] = { +static const uint8_t tegra_power_domain_tree_desc[] = { /* No of root nodes */ 1, /* No of clusters */